<?php
include "../config/koneksi.php";
include "../class/toko.php";

$Toko_Dao=new Toko_Dao();
$list=$Toko_Dao->get($id_toko=$_SESSION['Id']);

?>
<html>
<head>
<title>List Toko</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="center"></div>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr >
    <td height="30"> 
      <div align="left"><font size="3" face="tahoma">Profil Toko</font><hr color=#CCCCFF></div></td>
    </tr>
  </table>
 <table width="100%" border="0" bordercolor="#666666" bgcolor="#FFFFFF">
  <tr valign="middle" bordercolor="#FFFFFF"> 
    <td colspan="3"><div align="left"></div></td>
  </tr>
	<?php
	//$i=1;
	//foreach($list as $list){
	//$id_toko=$list->id_toko;

	?>
	<tr>
    <td valign="top">
    	<table width="100%" border="0" bordercolor="#000000">
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top" width="25%"><font size="2" face="tahoma">Nama Toko</font></td>
          	<td valign="top" width="2%"><font size="2">:</font></td>
          	<td valign="top" width="73%"><font face="tahoma" size="2"><?php echo $list->nama_toko; ?></font></td>
          </tr>
          <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Alamat</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->alamat; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Kota</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->kota; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Kode Pos</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->kodepos; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Telp / HP</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->telp; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Email</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->email; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Deskripsi Toko</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><textarea cols=30 rows=5><?php echo $list->deskripsi_toko; ?></textarea></font></td>
          </tr>
		  <tr>
			<td colspan=2 align=center></td><td><font face=tahoma size=2><br><br>Informasi Rekening Anda</font></td>
			</tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Rekening Bank</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->nama_bank; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Cabang</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->cabang; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Atas Nama</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->atas_nama; ?></font></td>
          </tr>
		  <tr bordercolor="#FFFFFF"> 
          	<td valign="top"><font size="2" face="tahoma">Nomor Rekening</font></td>
          	<td valign="top"><font size="2">:</font></td>
          	<td valign="top"><font face="tahoma" size="2"><?php echo $list->rek; ?></font></td>
          </tr>
		  	</table>
	</td>
	<? 
		
		echo"</tr></table>";
?>
<br>
<table width=45% align=center>
<tr>
<td><?php echo "<a href=index.php?menu=edit_toko&id_toko=$id_toko><input type=submit value=Edit></a>";?></td>
</tr></table>

</body>
</html>